#include<iostream>
using namespace std;
int Gcd(int a,int b);
int main()
{
    int a,b;
    cin>>a>>b;
    cout<<a*b/Gcd(a,b);
    return 0;
}
int Gcd(int a,int b)
{
    if(a<b){
        int t=a;
        a=b;
        b=t;
    }
    return a%b==0?b:Gcd(b,a%b);
}
